<?php
/**
 * Created by PhpStorm.
 * User: 张辉
 * Date: 2018/8/15
 * Time: 12:12
 */

/**
 * Class UserLoginOnVerificationConfig 用户无需验证配置
 */
namespace app\common\service;

class UserLoginOnVerificationConfig
{
    public static $config = array(
        '18511861836'   =>  array(
            '18511861836' => '999111',
        ),
    );

    /**
     * @param $mobile
     * @param $code
     * @return bool
     */
    public static function check( $mobile, $code ){

        if ( isset( self::$config[$mobile][$mobile] ) && self::$config[$mobile][$mobile] == $code ){
            return true;
        }

        return false;
    }

    /**
     * 新版服务号体验用户
     * @var array
     */
    public static $open_id_config = array(
        'oqYO51ZnHooaHuTYqeYfHLHZbVis', // 田江通
        'oqYO51boGOOXDzCPpLyk2hPJTXwk', // 大鹏
        'oqYO51SitIu3-gUL75CDIMz6bAeQ', // 张立鹏
        'oqYO51XQio2F2XuClcyCRnqN_KIQ', // 李潇雄
        'oqYO51c1FxJSn_HmSDvlq79T26ug', // 徐毛毛他爹
        'oqYO51ULocBNnxZRBtcmscE9HFoc', // 谁谁谁
        'oqYO51a9X6Gc0bZSwTEgRmRxw7no', // 王壮
        'oqYO51VX_dc8UL43d5lypqsGnKoA', // 李雷
        'oqYO51Xbo8utnMYZBNXCRZ32v7ZQ', // 77
        'oqYO51UvDdg1sivmVkQMSpR4kbLg', // 猴老大
    );
}